package io.github.kouleen.manager.listener.player;

import io.github.kouleen.minecraft.core.lang.annotation.MinecraftPluginListener;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerRespawnEvent;

/**
 * 玩家重生事件
 * @author zhangqing
 * @since 2025/2/26 10:57
 */
@MinecraftPluginListener
public class PlayerRespawnListener implements Listener {

    @EventHandler
    public void onPlayerRespawnListener(PlayerRespawnEvent playerRespawnEvent){
        Player player = playerRespawnEvent.getPlayer();
        System.out.println(player.getName() + " 触发了玩家重生事件");
    }
}
